// 代码块 mainW
import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text(
            "你好Flutter",
            textDirection: TextDirection.ltr,
            style: TextStyle(color: Colors.black, fontSize: 20),
          ),
        ),
        body: const MyApp(),
      ),
    ),
  );
}

// 代码块 statelessW
class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const Center(
      child: Text(
        "欢迎使用Flutter！这是一个简单的应用程序",
        textDirection: TextDirection.ltr,
        style: TextStyle(
          // color: Colors.red,
          color: Color.fromRGBO(244, 244, 123, 1),
          fontSize: 40,
        ),
      ),
    );
  }
}
